package com.jzmy.site.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.plugins.Page;
import com.jzmy.site.dao.CertificateProfileDao;
import com.jzmy.site.entity.CertificateProfile;
import com.jzmy.site.service.CertificateProfileService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 证书概况
 * @author mengzhichao
 * @create 2022-08-22-16:01
 */
@Service
public class CertificateProfileServiceImpl extends ServiceImpl<CertificateProfileDao, CertificateProfile> implements CertificateProfileService {

    @Override
    public List<Map<Object,Object>> selByAll(){
        return baseMapper.selByAll();
    }

    @Override
    public String selByFormalByProfileId(String id) {
        return baseMapper.selByFormalByProfileId(id);
    }

    @Override
    public List<Map<Object, Object>> selByFormal() {
        return baseMapper.selByFormal();
    }

    @Override
    public List<Map<Object, Object>> selByNoTea() {
        return baseMapper.selByNoTea();
    }

    @Override
    public Page<CertificateProfile> findListPage(int current, int number) {
        Page<CertificateProfile> page = new Page<CertificateProfile>(current, number);
        return page.setRecords(this.baseMapper.findListPage(page));
    }

    @Override
    public Page<CertificateProfile> findListPageFormal(int current, int number) {
        Page<CertificateProfile> page = new Page<CertificateProfile>(current, number);
        return page.setRecords(this.baseMapper.findListPageFormal(page));
    }

    @Override
    public List<Map<Object,Object>> selOrgByCer(Map map){
        return this.baseMapper.selOrgByCer(map);
    }

    @Override
    public List<Map<Object, Object>> selregionAll() {
        return baseMapper.selregionAll();
    }
}
